package com.yingxin.yxerp.module.activiti.api;

import com.yingxin.yx.framework.commons.enums.BusinessType;

import java.util.Map;

public interface ProcessService {

    void startProcessInstance(BusinessType businessType, String businessId, String businessNo,
                              Map<String, Object> variables);

    /**
     * 取消预售单专用
     * @param businessType 单据类型
     * @param businessId 单据id
     * @param businessNo 单据编号
     * @param variables 验证条件
     * @param startUserId 当前登录人
     */
    void startProcessInstance(BusinessType businessType, String businessId, String businessNo,
                                     Map<String, Object> variables, String startUserId );

}
